package com.nineclock.system.service;

import com.nineclock.system.dto.SysAllowedJoinCompanyUserDTO;
import com.nineclock.system.dto.SysApplyJoinCompanyUserDTO;
import com.nineclock.system.dto.SysChangeMainManagerDTO;
import com.nineclock.system.dto.SysCompanyDTO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface SysCompanyService {

    SysCompanyDTO queryCompanyInfo();

    String uploadOSS(MultipartFile file) throws IOException;

    void updateCompanyInfo(SysCompanyDTO companyDTO);

    void changeAdmin(SysChangeMainManagerDTO changeMainManagerDTO);

    List<SysCompanyDTO> queryCompanyByName(String keyword);

    void applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);

    void allowJoinCompany(SysAllowedJoinCompanyUserDTO sysAllowedJoinCompanyUserDTO);

    List<SysCompanyDTO> queryCompanyListByUserId(Long userId);
}
